<?php

require_once 'config/local.inc.config.php';

class DBConnect {

    public function __construct() {

        $link = mysql_connect(DB_HOST, DB_USERNAME, DB_PASSWORD);
        if (!$link) {
            die('Could not connect: ' . mysql_error());
        }
        mysql_select_db(DB_NAME);
    }

    public function makeRequest($query){
        return mysql_query($query);
    }
}
?>
